<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>EVON Global Logistics Solution</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/functionality.js"></script>
</head>

<body onload="hideall()">
<!--<div id="maincontent">
	<div class="clear"></div>
	<div class="headingbg">Create Transporter</div>
	<div class="clear"></div>
	
	
	--><sj:div id="createTransporterDiv" cssClass="maincontent" indicator="indicator">
	<s:actionmessage/>
	<s:actionerror/>
	<s:fielderror></s:fielderror>
	<s:form id="createTransporterForm" action="addTransporter" theme="simple" validate="true">
		<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
		<td><b>Selected Yard :</b>
		<s:select label="Select Yard" headerKey="-1"
				headerValue="Select Yard" list="listYard" listKey="id"
				listValue="name" name="selectedYardId" disabled="true"/>
		</td>
		</tr>
		<s:hidden name="dto.id" id="dto.id" value="%{dto.id}"></s:hidden>
		
		<tr>
		<td style="height:10px;"></td>
		</tr>
		</table>
		<table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" class="gridtable">
		<tr>
		<th colspan="4">Edit Details</th>
		</tr>
		<tr>
		<td width="15%">Name</td>
		<td width="35%"><s:textfield name="dto.name" label="Name :" value="%{dto.name}"  maxlength="80"/></td>
		<td width="15%">City</td>
		<td width="35%"><s:textfield name="dto.city" label="City :" value="%{dto.city}"  maxlength="50"/></td>
		</td>
		</tr>
		<tr class="alt"> 
		<td>Phone</td>
		<td><s:textfield name="dto.phone" label="Phone :" value="%{dto.phone}"  maxlength="13"/></td>
		<td>Active</td>
		<td>
		<s:checkbox  name= "%{dto.active}"   fieldValue="true" ></s:checkbox>
		<!--<s:textfield name="dto.active" label="Active :" value="%{dto.active}" />
		--></td>
		</tr>
		<tr>
		<td>Description</td>
		<td><s:textfield name="dto.description" label="Description :"
		value="%{dto.description}"  maxlength="100"/></td>
		<td>Address</td>
		<td><s:textfield name="dto.address" label="Address :"
		value="%{dto.address}"  maxlength="100"/></td>
		</tr>
		<tr class="alt"> 
		<td>Contact Person</td>
		<td><s:textfield name="dto.contactPerson" label="Contact Person :"
		value="%{dto.contactPerson}"  maxlength="50" /></td>
		<td></td>
		<td></td>
		</tr>
		</table>
		<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
		<td style="height:10px;"></td>
		</tr>
		<tr>
		<td align="right"><sj:submit formIds="createTransporterForm" targets="createTransporterDiv" indicator="indicator" value="Submit" cssClass="btnbg"/></td>
		<td align="right">
					<s:url var="backUrl" action="manageTransporter" escapeAmp="false">
					<s:param name="selectedYardId" value="%{selectedYardId}"/>
					<s:param name="oemType" value="%{oemType}"/></s:url>
				<sj:submit href="%{backUrl}"  targets="createTransporterDiv" formIds="createTransporterForm" cssClass="btnbg" value="Back" />
				
				</td>
		</tr>
		</table>
	</s:form>	
	</sj:div>
</body>
</html>
